@extends('admin.layout.layout')
@section('title')
<title>北京仁爱慈善后台</title>
@endsection
@section('con')
<title>北京市仁爱慈善后台</title>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">图片列表</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            列表
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                              <ul class="nav nav-tabs">
                                  @foreach($data as $ke=>$vl)
                                  <li class=""><a href="{{url('/admin/tab/piclist',['id'=>$vl->id])}}">{{$vl->title}}</a>
                                  </li>
                                  @endforeach
                              </ul>
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>图片</th>
                                            <!-- <th>Engine version</th> -->
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach($data as $k=>$v)
                                        @foreach($tabs as $k=>$v)
                                        @if($v->pid != 0)
                                        <tr class="odd gradeX">
                                            <td><img src="{{$v->logo}}" width="100px" height="50px;" alt="" /></td>
                                            <!-- <td class="center">4</td> -->
                                            <td class="center">
                                                <a href="{{url('admin/tab/edit',['id'=>$v->id])}}"><button type="submit" class="btn btn-primary" style="margin-top:20px;">修改</button></a>
                                                <a href="{{url('admin/tab/delete',['id'=>$v->id])}}"><button type="reset" class="btn btn-danger" style="margin-top:20px;">删除</button></a>
                                            </td>
                                        </tr>
                                        @endif
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
@endsection
